//priority 10000
const jsonHelper = {
    writeFile(path, JsonObject) {
        JsonIO.write(path, JsonObject)
    },
    readFile(path) {
        return JsonIO.read(path)
    },
    readOrCreateFile(path, DefaultJsonObject) {
        let File = JsonIO.read(path)
        if (File == null) {
            JsonIO.write(path, DefaultJsonObject)
            File = JsonIO.read(path)
        }
        return File
    }
    
}
global.jsonHelper = jsonHelper